import http from '../util/http';
import urlConcat from './url-concat';
import format from '../util/timer';
export default {
  async factoryBuildingAdd(obj: any) {
    const paramsUrl = urlConcat(`/factoryBuilding/add`, obj);
    return http.post(paramsUrl);
  },
  async factoryBuildingDel(ids: string) {
    const paramsUrl = urlConcat(`/factoryBuilding/delete`, {
      ids,
    });
    return http.get(paramsUrl);
  },
  async factoryBuildingList(obj: any) {
    obj.createTime = format(obj.createTime) || '';
    const paramsUrl = urlConcat(`/factoryBuilding/selectListPage`, obj);
    return http.get(paramsUrl);
  },
  async factoryBuildingUpdate(obj: any) {
    const paramsUrl = urlConcat(`/factoryBuilding/update`, obj);
    return http.post(paramsUrl);
  },
};
